/*
A plot of enrollees in MarketScan over time
- Input data is created in S3 - Create User Characteristics
*/

clear
use enrol_list1996

gen year = 1996

forvalues year = 1997/2013 {

	append using enrol_list`year'
	replace year = `year' if year == .
}

gen enrollees = 1

collapse (sum) enrollees, by(year)



scatter enrollees year, ytitle("Enrollees (millions)")
graph export "enrollees_by_year.png", width(4000) replace